package com.fowo.api.sys.controller;

import com.fowo.api.common.meta.MetaDataObjects;
import com.fowo.api.common.model.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统元数据控制器
 * @author yl_ls
 */
@Tag(name = "系统元数据")
@RestController
@RequestMapping("/api/sys/meta-data")
public class SysMetaDataController {

    /**
     * 获取系统元数据
     * @return
     */
    @Operation(summary = "获取系统元数据")
    @GetMapping
    public R<?> getMetaData() {
        return R.data(MetaDataObjects::getObjects);
    }
}
